home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 September
/
PCWorld_2006-09_cd.bin
/
v cisle
/
hexer
/
mpth_17.exe
/
{app}
/
scripts
/
Jump backward.mps
< prev
next >
Wrap
Text File
|
2006-05-01
|
561b
|
23 lines
INCLUDE '*.lng'
= jump x bytes backward
option opt5, 'internal,30':= set an icon for this script
IF (CURRENTFILE == '')
END
ENDIF
VAR offs LONGWORD
IF (NOT REGREAD('HKEY_SETTINGS\scripts','Jump offset', @offs))
offs = INPUTNUMBER(__SJO1__)
REGWRITE 'HKEY_SETTINGS\scripts', 'Jump offset', offs
ENDIF
= decrement absoluteposition of current file
VAR abspos SIGQWORD fcur FILE
fcur = FILEOPEN('::current')
abspos = FILEGETPROP(fcur, 'AbsolutePosition')
INC abspos, -offs
FILESETPROP fcur, 'Absoluteposition', abspos
FILECLOSE fcur